<?php
//=======================================
//###################################
// Kayako Web Solutions
//
// Source Copyright 2001-2004 Kayako Infotech Ltd.
// Unauthorized reproduction is not allowed
// License Number: $%LICENSE%$
// $Author: vshoor $ ($Date: 2005/10/24 22:15:35 $)
// $RCSfile: client_irs.php,v $ : $Revision: 1.4 $ 
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
//###################################
//=======================================

if (!defined("INSWIFT")) {
	trigger_error("Unable to process $PHP_SELF", E_USER_ERROR);
}

if (empty($_GET["query"]) || !$module->isRegistered(MODULE_TICKETS))
{
	exit;
}

require_once ("./modules/knowledgebase/functions_irs.php");

header("Content-type: text/html; charset=".$_SWIFT["language"]["charset"]);

$_irsresults = _runIRS($_GET["query"]);

if ($_irsresults)
{
	$template->assign("irsitems", $_irsresults);
	echo $template->displayTemplate("irssuggestions");
}
?>